<%--

    Copyright (C) 2010 altuure <altuure [AT] gmail [DOT] com> http://www.altuure.com/projects/yagdao

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

--%>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>Theme Preview </title>

    <link rel="stylesheet" href="<c:url value="/style.css"/>" type="text/css" media="screen"/>


    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://wp-themes.com/wp/xmlrpc.php?rsd"/>
    <link rel="wlwmanifest" type="application/wlwmanifest+xml"
          href="http://wp-themes.com/wp/wp-includes/wlwmanifest.xml"/>
    <link rel='index' title='Theme Preview' href='http://wp-themes.com'/>

</head>

<body>
<div id="page">

    <div id="header">
        <div id="headerimg">
            <h1><a href="<c:url value="/"/>">Theme Preview</a></h1>

            <div class="description">Previewing Another WordPress Blog</div>

        </div>
    </div>
    <hr/>

    <div id="content" class="narrowcolumn">


        <c:forEach items="${requestScope.posts}" var="post">
            <div class="post" id="post-<c:out value="${post.id}"/>">

                <h2><a href="<c:url value="/post/${post.id}.html"/>" rel="bookmark" title="Permanent Link to Elements"><c:out
                        value="${post.title}"/></a></h2>

                <div class="date">
                    <small><fmt:formatDate value="${post.publishDate}" pattern="EEE, MMM d, ''yy"/></small>
                </div>

                <div class="entry">
                    <c:out value="${post.body}"/>

                </div>
            </div>
        </c:forEach>
        <div>
            <table border="1" cellpadding="3" cellspacing="3"> <tr>
            <c:forEach var="x" begin="0" end="${pageCount}" step="1">
              <td><a href="<c:url value="/page/${x}.html"/>"/><c:out value="${x+1}"/></a></td>

            </c:forEach>
                </tr>

            </table>
        </div>

    </div>

    <div id="sidebar">

        <div class="about">
            This is the new about section where you can briefly discuss who you are and what you're writing about.
        </div>
        <ul>


            <li class="pagenav"><h2>Pages</h2>
                <ul>
                    <li class="page_item page-item-2"><a href="javascript:void(0);" title="About">About</a>
                    </li>
                    
                    <li class="page_item page-item-2"><a href="<c:url value="/admin/posts.html"/>" title="Login">login</a>
                    </li>

                </ul>
            </li>
            <li><h2>Archives</h2>
                <ul>
                     <c:forEach items="${requestScope.listByDate}" var="summary">
                         <fmt:parseDate var="summaryDate" value="${summary[0]},${summary[1]}"  pattern="MM,yyyy"/>
                        <%-- --%>
                         <fmt:formatDate value="${summaryDate}" pattern="yyyy/MM" var="mstr"/>
                      <li><a href='<c:url value="/date/${mstr}.html"/>' title='<fmt:formatDate value="${summaryDate}" pattern="MMMMM, ''yy"/>'><fmt:formatDate value="${summaryDate}" pattern="MMMMM, ''yy"/> (<c:out value="${summary[2]}"/>)</a></li>

                       </c:forEach>

                </ul>
            </li>

            <li class="categories"><h2>Categories</h2>
                <ul>
                  <c:forEach items="${requestScope.categories}" var="cat">
                    <li class="cat-item cat-item-<c:out value="${cat.id}" />"><a href="<c:url value="/category/${cat.name}.html"/>"
                                                       title="View all posts filed under Parent"><c:out value="${cat.name}"/></a>    </li>
                      </c:forEach>


                </ul>
            </li>
            <li class="tags"><h2>Tags</h2>
                <ul>
                  <c:forEach items="${requestScope.tags}" var="tag">
                    <li class="tag-item tag-item-<c:out value="${tag[0]}" />"><a href="<c:url value="/tag/${tag[0]}.html"/>"
                                                       title="View all posts filed under Parent"><c:out value="${tag[0]}"/></a>    </li>
                      </c:forEach>


                </ul>
            </li>
            <li id="linkcat-2" class="linkcat"><h2>Blogroll</h2>
                <ul class='xoxo blogroll'>
                      <c:forEach items="${requestScope.links}" var="link">
                    <li><a href="<c:out value="${link.href}" escapeXml="false"/>"><c:out value="${link.name}"/></a></li>
                          </c:forEach>
                 

                </ul>
            </li>

            <li><h2>Meta</h2>

                <ul>
                    <li><a href="javascript:void(0);">Log in</a></li>
                    <li><a href="javascript:void(0);"
                           title="This page validates as XHTML 1.0 Transitional">Valid <abbr
                            title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
                    <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
                    <li><a href="http://wordpress.org/"
                           title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a>
                    </li>


                </ul>

            </li>
            <li>
                <form method="get" id="searchform" action="<c:url value="/search.html"/>">
                    <label class="hidden" for="q">Search for:</label>

                    <div><input type="text" value="" name="q" id="q"/><br/>
                        <input type="submit" id="searchsubmit" value="Search"/></div>
                </form>
            </li>
        </ul>
    </div>

    <hr/>
    <div id="footer">
        <!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. -->
        <p>
            (c) 2008 by Theme Preview. Site powered by <a href="http://wordpress.org/">WordPress</a> and designed by <a
                href="http://www.azeemazeez.com/blogs/white-as-milk/" target="_blank">Azeem Azeez</a> and <a
                href="http://www.daverigotti.com" target="_blank">Dave Rigotti</a>. <br/><a
                href="http://wp-themes.com/?feed=rss2">Entries (RSS)</a> and <a
                href="http://wp-themes.com/?feed=comments-rss2">Comments (RSS)</a>.
            <!-- 14 queries. 0.749 seconds. -->

        </p>
    </div>
</div>

</body>
</html>

</body>
</html>